package com.sevenGroup.pawnshop.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页对象")
public class pageForm {
    @ApiModelProperty("当前页数")


    @Min(value = 1,message = "页数不能小于1")
    private Integer pageNum;
    @ApiModelProperty("每页查询的数量")
    @Min(value = 2,message = "每页数量不能小于2")
    private Integer pageSize;
}
